package com.xbongbong.admin.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.statistic.pojo.dto.ChartMirrorInstallDTO;
import com.xbongbong.pro.statistic.pojo.vo.ChartMirrorInstallVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author guohui.zhang
 * @Title:
 * @date 2020/pro-web-statistics3/319:37
 */
@FeignClient(name = "pro-web-statistics",contextId = "chartInstallFeignClient")
public interface ChartInstallFeignClient {

    /**
     * 创建图表
     * @param chartMirrorInstallDTO
     * @param lang
     * @return
     */
    @RequestMapping(value = "/pro/v1/chart/mirrorInstallChart", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<ChartMirrorInstallVO> mirrorInstallChart(@RequestBody ChartMirrorInstallDTO chartMirrorInstallDTO, @RequestParam("lang") String lang);
}
